package com.xcmg.restaurant.restuarantservice.feign;

import com.xcmg.restaurant.apimodel.Customer;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * CustomerService
 *
 * @author diyiliu
 * @create 2024-07-17 18:13
 **/

@FeignClient(name = "customer-service")
public interface CustomerService {

    @GetMapping("/customer/{id}")
    Customer getCustomerById(@PathVariable("id") Long id);
}
